package com.thinkit.bigdata.web.service.perCenter;

import com.thinkit.bigdata.web.model.result.HtmlResult;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.ExecutionException;

/**
 *
 * Created by hccl on 2018/9/5.
 */
public interface PerCenDetService {
    HtmlResult getDataBySerialNumber(String serialNumber) throws IOException;

    HtmlResult getWorkScoreSerialNumber(HttpServletRequest request) throws IOException;

    HtmlResult getSttInfoBySerialNumber(String serialNumber) throws IOException;

    HtmlResult getTagsBySerialNumber(String serialNumber) throws IOException;

    HtmlResult getRulesBySerialNumber(String serialNumber, String workId) throws IOException, InvocationTargetException, IllegalAccessException;

    HtmlResult getTestRulesBySerialNumber(String serialNumber, String workId) throws IOException;

    HtmlResult getWorkStatusById(HttpServletRequest request) throws IOException;

    HtmlResult addTag(String serialNumber, String tagIds, String tagNames) throws IOException;

    HtmlResult delTag(String serialNumber, String tagName) throws IOException;

    HtmlResult isRuleExit(HttpServletRequest request) throws IOException;

    HtmlResult getTagsList(String serialNumber) throws IOException;

    HtmlResult updateRulesForSys(HttpServletRequest request) throws IOException;

    HtmlResult getTree(String workId);

    HtmlResult getRuleByTree(HttpServletRequest request);

    HtmlResult addRulesForArti(HttpServletRequest request) throws IOException;

    HtmlResult delRulesForArti(HttpServletRequest request) throws IOException, ExecutionException;
}
